import http from "@/api";

import { ResPage } from "@/api/interface";

import { DealerStreamVo } from "@/biz/interface/modules/DealerStreamType";

import { ModuleFlexJobUrl } from "..";

const moduleUrl = ModuleFlexJobUrl;

// * 获取dealerStream列表
export const getDealerStreamVoListApi = (params: {}) => {
  return http.post<ResPage<DealerStreamVo>>(moduleUrl + `/dealwalletapi/streams`, params);
};

// // * 新增dealerStream接口
// export const saveDealerStreamApi = (dealerStream: DealerStreamEntity) => {
//   return http.post(moduleUrl + `/stream/dealersave`, dealerStream);
// };

// // * 详情dealerStream接口
// export const getDealerStreamInfoApi = (params: { id: string }) => {
//   return http.post<DealerStreamEntity>(moduleUrl + `/stream/dealerinfo`, params);
// };

// * 删除dealerStream接口
export const deleteDealerStreamApi = (params: { id: string }) => {
  return http.post(moduleUrl + `/dealwalletapi/rmstream`, params);
};
